package com.example.springbean.controller;

import com.example.springbean.transaction.TestTransaction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 15871
 */
@RestController
public class TestController {

    @Autowired
    private TestTransaction testTransaction;

    @GetMapping("test/transaction")
    public String test() {

        testTransaction.a();
        return "ok";
    }
}
